import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';


import App from './App.vue';
import './style/index.css';

import router from '@/routes';

import '@/components/component.js'
import '@/directives';

import store from '@/store';
import './permission';


Vue.use(ElementUI);

let vm = new Vue({
  el: '#app',
  template: '<App></App>',
  router,
  components: {App},
  store
});

window.$vm = vm;
